﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevExpress.Web.ASPxCallback;
using System.Xml;

namespace GoogleMapMockUp
{
    public partial class CreateRoute : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ASPxCallback1_Callback(object sender, CallbackEventArgs e)
        {
            string xpath = string.Format("//items/item[@newsID='{0}']", e.Parameter);
            XmlNode node = XmlDataSource1.GetXmlDocument().SelectSingleNode(xpath);
            if (node != null)
                e.Result = node.Attributes["Description"].Value;
        }


    }
}